FROM ubuntu:22.04
ENV SHELL /bin/bash
ENV HOME /root
ENV TZ Asia/Shanghai
ENV LANGUAGE zh_CN.UTF-8
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY resolv.conf /etc/resolv.conf
RUN sed -i "s@http.*com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list;sed -i "s@http.*org@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list;sed -i "s@http.*cn@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
RUN apt clean all
RUN apt update  --allow-unauthenticated
RUN apt install --reinstall libc6 tzdata  libseccomp2 iproute2 -y
RUN apt-get install apt-transport-https ca-certificates -y
RUN sed -i "s@http.*com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list;sed -i "s@http.*org@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list;sed -i "s@http.*cn@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list

RUN apt autoremove
RUN apt clean all
RUN rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.deb
WORKDIR $HOME
LABEL description="这是一个基础系统."
LABEL maintainer="坐公交也用券"
LABEL home="https://liumou.site"
LABEL Version=1.3

CMD ["/bin/bash"]